package com.itlong.cloud.tapd;



import com.itlong.cloud.tapd.service.TotalService;
import com.itlong.cloud.tapd.util.GetTime;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * <des>
 *
 * <des>
 *
 * @create Date 2021-09-08
 **/
public class Test {
    public static void main(String[] args) throws ParseException {
        TotalService totalService = new TotalService();
        List<String> userList = totalService.getUserList();
        List<String> workspaceidList = totalService.getWorkspaceidList();
        List<HashMap<String, Object>> tasks = totalService.getTasks(workspaceidList);
        List<HashMap<String, Object>> stories = totalService.getStories(workspaceidList);
        List<HashMap<String, Object>> bugs = totalService.getBugs(workspaceidList);
        System.out.println(totalService.getDailyResults(userList, tasks, stories, bugs));
    }
}
